package ooday05;
// 鸡   下蛋()     实现接口叫()   重写吃()
public class Chick extends Animal implements Call{

    Chick(){

    }

    Chick(String name,int age,int index){
        super(name,age,index);
    }

    void  agg(){
        System.out.println(name+"正在下蛋");
    }

    void  eat(){
        System.out.println("编号为"+index+"的小鸡名叫"+name+"它正在吃小米");
    }

    public void call(){
        System.out.println(name+"正在叫");
    }
}
